package com.ericpol.pageObjectPattern;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;


public class LoginPage extends PageBase {

	public LoginPage(WebDriver driver){
		super(driver);
	}
	public MainPage Login(String username, String password) throws Exception {
		insertText(By.id("login"), username);
		insertText(By.id("password"), password);
		click(By.name("commit"));
		return new MainPage(driver);
	}

	public void open() {
		open("http://demo.bananascrum.com");
	}
}
